package com.hansen.library;

import android.os.Environment;

import java.io.File;

/**
 * Created by han on 2019/6/10 0010.
 */

public class Constants {
    //是否输出调试日志
    public static boolean isDebug = true;

    public static final String SHARED_PREFERENCE_NAME = "yiNiangDrinksSp";
    //app引导
    public static final String SP_AppGuide = "spAppGuide";
    //用户手机
    public static final String SP_UserPhone = "spUserPhone";
    //用户token
    public static final String SP_UserToken = "spUserToken";
    //用户id
    public static final String SP_UserID = "spUserID";
    ///用户昵称
    public static final String SP_UserName = "spUserName";
    //用户头像
    public static final String SP_UserAvatar = "spUserAvatar";
    //用户钱包支付是否开启密码验证
    public static final String SP_IsOpenPayPassword = "spIsOpenPayPassword";
    //mobile exist
    public static final String SP_UserPhoneExist = "spUserPhoneExist";
    //用户身份
    public static final String SP_UserRole = "spUserRole";
    //jpush id
    public static final String SP_JPush = "spJpush";

    //头像
    public static final String KeyAvatar = "keyAvatar";
    //金额
    public static final String KeyMoney = "keyMoney";
    //对象
    public static final String KeyObject = "keyObject";
    //对象
    public static final String KeyList = "keyList";
    //详情
    public static final String KeyTextContents = "keyTextContent";
    //id
    public static final String KeyId = "keyId";
    //id
    public static final String KeyUserId = "keyUserId";
    //id
    public static final String KeyIMAccount = "keyIMAccount";
    //地址id
    public static final String KeyAddressId = "keyAddressId";
    //name
    public static final String KeyName = "keyName";
    //手机号
    public static final String KeyMobile = "keyMobile";
    //位置
    public static final String KeyPos = "keyPos";
    //标题
    public static final String KeyTitle = "keyTitle";
    //时间
    public static final String KeyTime = "keyTime";
    //状态
    public static final String KeyStatus = "keyStatus";
    //商品id
    public static final String KeyGoodsId = "keyGoodsId";
    //sku id
    public static final String KeySkuId = "keySkuId";
    //酒单id
    public static final String KeyWineListId = "keyWineListId";
    //社区id
    public static final String KeyCommunityId = "keyCommunityId";
    //分类id
    public static final String KeyCategoryId = "keyCategoryId";
    //类型
    public static final String KeyType = "keyType";
    //类型
    public static final String KeyInputType = "keyInputType";
    //类型
    public static final String KeyLineType = "keyLineType";
    //json
    public static final String KeyJson = "keyJson";
    //数字
    public static final String KeyNubmer = "keyNumber";
    //总数
    public static final String KeyTotal = "keyTotal";
    //url链接
    public static final String KeyUrl = "keyUrl";
    //提示hint
    public static final String KeyHint = "keyHint";
    //最多文字
    public static final String KeyMaxLength = "keyMaxLength";
    //城市
    public static final String KeyCityId = "keyCityID";
    //城市
    public static final String KeyCityName = "keyCityName";
    //类型
    public static final String KeyOrderType = "keyOrderType";
    //订单id
    public static final String KeyOrderId = "keyOrderId";
    //订单No
    public static final String KeyOrderNo = "keyOrderNo";
    //boolen
    public static final String KeyBoolen = "keyBoolen";
    //boolen
    public static final String KeyChoose = "keyChoose";
    //boolen
    public static final String KeyShow = "KeyShow";
    public static final String KeyShowMax = "KeyShowMax";
    public static final String KeyShowTitle = "KeyShowTitle";
    public static final String KeyShowCancel = "KeyShowCancel";
    public static final String KeyShowReportBlock = "KeyShowReportBlock";
    //必须
    public static final String keyNecessary = "keyNecessary";
    //挤下线
    public static final String KeyKickOut = "keyKickOut";
    //所有接口都需要加
    public static final String KeySignSecret = "qCW2FJpPrW";
    //搜索历史
    public static final String KeyHistory = "keySearchHistory";
    //跳转到购物车页面
    public static final String KeyJumpToShoppingCartPage = "keyJumpToShoppingCartPage";
    //跳转到首页
    public static final String KeyJumpToHomePage = "keyJumpToHomePage";

    //Result code
    public static final int RESULT_CODE_NORMAL = 0x01;
    //request code
    //登录请求code
    public static final int REQ_LOGIN_CODE = 11000;
    //相机请求码
    public static final int REQUEST_CAMERA = 0x3E9;
    //权限请求码
    public static final int REQUEST_PERMISSION = 0x3EA;
    //预览activity请求码
    public static final int REQUEST_PREVIEW_ACTIVITY = 0x3EB;
    //每页条数
    public static final int PAGE_SIZE_INT = 10;
    public static final String PAGE_SIZE = "10";

    public static final String WX_APPID = "wxb315cbb3dfe474cf";
    public static final String WX_MINI_PROGRAM_APPID = "gh_412182c99086";
    public static final String QQ_APPID = "101556203";

    //--------------------------tag----------------------------
    public static final String TAG_PAY_DIALOG = "pay_dialog";
    public static final String TAG_PAY_PASSWORD_DIALOG = "pay_password_dialog";
    public static final String TAG_TIPS_DIALOG = "tips_dialog";
    public static final String TAG_TIPS_PERMISSION_DIALOG = "permission_dialog";
    public static final String TAG_ADD_TO_CART_DIALOG = "add_to_cart_dialog";
    public static final String TAG_ADD_TO_CART_NUM = "add_to_cart_num_dialog";
    public static final String TAG_WINE_LIST_DIALOG = "wine_list_dialog";
    public static final String TAG_REASON_LIST_DIALOG = "reason_list_dialog";
    public static final String TAG_COUPON_LIST_DIALOG = "reason_coupon_dialog";
    public static final String TAG_COMMENTS_DIALOG = "comments_dialog";
    public static final String TAG_CONTACT_SERVICE_DIALOG = "contact_service_dialog";
    public static final String TAG_TIPS_PERMISSION = "permission_dialog";
    public static final String TAG_SHARE_DIALOG = "share_dialog";

    //小程序分享路径
    public static final String PATH_MINI_PROGRAM = "/pages/common/welcome/welcome";


    /*----------------------------------文件相关-------------------------------------*/
    //文件名
    public static final String FileName = "yiniang";
    //根目录
    public static final String RootFile = Environment.getExternalStorageDirectory().getAbsolutePath() +  File.separator + FileName;
    //下载apk目录
    public static final String RootApkPath = RootFile +  File.separator + "apk" +  File.separator;
    //app保存crash目录
    public static final String RootCrashPath = RootFile +  File.separator + "crash" +  File.separator;
    //附件下载目录
    public static final String RootFilePath = RootFile +  File.separator + "file" +  File.separator;
    //拍照上传图片路径
    public static final String RootTakePhoto = RootFile +  File.separator + "image" +  File.separator;
    //视频路径
    public static final String RootVideo = RootFile +  File.separator + "video" +  File.separator;
    //草稿路径
    public static final String RootDrafts = RootFile +  File.separator + "drafts" +  File.separator;

    /*----------------------------------常量------------------------------------------*/

    public static final String APP_GUIDE_VERSION = "V1";

    //男
    public static final String SEX_BOY = "1";
    //女
    public static final String SEX_GIRL = "2";
    //未知
    public static final String SEX_SECRECY = "0";

    //********************************************类型

    //-----------------订单类型
    //订单状态 0待支付 1已支付 2已发货 3已送达 4交易完成 5已评价 6已取消 7退款仲裁（退款中） 9门店自提 10已退款 11拒绝退款 12缺货取消一品脱订单状态
    //全部
    public static final String TYPE_ORDER_ALL = "-1";
    //待付款
    public static final String TYPE_ORDER_WAIT_FOR_PAY = "0";
    //待配送(已支付)
    public static final String TYPE_ORDER_WAIT_FOR_DELIVER = "1";
    //待收货(已发货)
    public static final String TYPE_ORDER_WAIT_FOR_RECEIPT = "2";
    //已送达
    public static final String TYPE_ORDER_ALREADY_DELIVERED = "3";
    //交易完成-待评论
    public static final String TYPE_ORDER_WAIT_FOR_EVALUATE = "4";
    //已评价
    public static final String TYPE_ORDER_ALREADY_EVALUATE = "5";
    //已取消
    public static final String TYPE_ORDER_CANCEL = "6";
    //退款仲裁（退款中）
    public static final String TYPE_ORDER_REFUNDIND = "7";
    //门店自提
    public static final String TYPE_ORDER_SELFT_GET = "9";
    //已退款
    public static final String TYPE_ORDER_ALREADY_REFUND = "10";
    //拒绝退款
    public static final String TYPE_ORDER_REFUND_REFUSE = "11";
    //缺货取消一品脱订单状态
    public static final String TYPE_ORDER_PLATEFORM_CANCEL = "12";

    //-----------------好友类型
    //我的关注
    public static final String TYPE_FRIENDS_FOLLOW = "1";
    //我的粉丝
    public static final String TYPE_FRIENDS_FANS = "2";

    //----------------优惠券类型
    //通用
    public static final String TYPE_COUPON_COMMON = "0";
    //门店
    public static final String TYPE_COUPON_SHOP = "1";

    //----------------评论类型
    //全部
    public static final String TYPE_GOODS_COMMENTS_COMMON = "0";
    //专家
    public static final String TYPE_GOODS_COMMENTS_SPECIALIST = "1";

    //-----------------心愿单列表类型
    //商品心愿列表
    public static final String TYPE_WISH_LIST_GOODS = "1";
    //酒单心愿列表
    public static final String TYPE_WISH_LIST_WINE = "2";
    //其他心愿列表
    public static final String TYPE_WISH_LIST_OTHER = "3";

    //-----------------消息列表类型
    //商品消息
    public static final String TYPE_MSG_LIST_GOODS = "1";
    //通知消息
    public static final String TYPE_MSG_LIST_NOTICE = "2";
    //私信消息
    public static final String TYPE_MSG_LIST_PRIVATE = "3";

    //----------------配送类型
    //外送
    public static final String TYPE_DELIVER_WAY_OUT_GOING = "0";
    //自提
    public static final String TYPE_DELIVER_WAY_SELF_GET = "1";

    //********************************************状态

    //---------------关注状态
    //未关注
    public static final String STATUS_UN_FOLLOW = "10";
    //已关注
    public static final String STATUS_ALREADY_FOLLOW = "1";
    //相互关注
    public static final String STATUS_FOLLOW_EACH_OTHER = "2";
    //加入黑名单
    public static final String STATUS_FOLLOW_BLACK = "3";

    //是、否状态
    //是
    public static final String STATUS_GLOBAL_YES = "1";
    //否
    public static final String STATUS_GLOBAL_NO = "0";



}
